package com.hades.example.java.refactoring.after.c11.c11_6_extract_subclass;

// 按零件收费的工作
public class PartsItem extends JobItem {
    private int _unitPrice;

    public PartsItem(int unitPrice, int quantity) {
        super(quantity);
        this._unitPrice = unitPrice;
    }

    public int getUnitPrice() {
        return _unitPrice;
    }
}
